<?php
class Ordermanager_Controller_Ordermanager implements Ordermanager_Controller_Mainable{
    
    public $page = array();
    
    private $ordemanager_model_accesslevel_decision;
    private $ordermanager_model_ordermanager;
    
    public function __construct() {
        $this->ordemanager_model_accesslevel_decision = new Ordermanager_Model_Accessleveldecision;
        $this->ordermanager_model_ordermanager = new Ordermanager_Model_Ordermanager;
    }
    
    public function main(array $variables = null) {
        $this->ordemanager_model_accesslevel_decision->main($variables);
        $this->page = $this->ordermanager_model_ordermanager->main($variables);
        //var_dump($this->page);
        //die();
        $view = new Core_Controller_View($this->page['template']);
        $view->assign('page', $this->page);
    }

}
